package com.imagination.applet.controller.api.response;

import com.imagination.applet.domain.fsImage.model.FaceSwapImage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApplyFaceSwapResponse {
    private Long faceChangingImageId;
    private String link;

    public static ApplyFaceSwapResponse of(FaceSwapImage image) {
        return ApplyFaceSwapResponse.builder()
                .faceChangingImageId(image.getAiImageId())
                .link(image.getLink())
                .build();
    }
}
